Skip to content

Conversation

@l2dy
Copy link
Owner

@l2dy l2dy commented Nov 17, 2025

No description provided.

@l2dy l2dy self-assigned this Nov 17, 2025
intellij-rust-bot and others added 2 commits December 13, 2025 21:01
The thread_local! macro in Rust's stdlib was refactored to use $tt:tt
fragment specifiers instead of specific types like $ty:ty and $expr:expr.

Reference: rust-lang/rust@a4e87e9
@l2dy l2dy force-pushed the nightly branch 3 times, most recently from 0691283 to 0dceca0 Compare December 14, 2025 06:40
When resolving paths in stub-only files (like stdlib during indexing),
avoid accessing `expandedStmtsAndTailExpr` on blocks and `parameter.pat`
on functions, as these require AST access which is forbidden in stub-only
mode.

Detect stub-only mode using `PsiFileImpl.isContentsLoaded` at the file
level, which correctly distinguishes:
- Real source files during indexing: stub-only (AST not loaded)
- Test files via configureByText: not stub-only (AST loaded)
- Code fragments: not stub-only (always have AST)

Fixes test failures after Rust 1.92.0 bump which added nested impls with
`use<>` bounds in stdlib that triggered path resolution through function
bodies during indexing.

Signed-off-by: Zero King <[email protected]>
@l2dy l2dy marked this pull request as ready for review December 14, 2025 12:27
@l2dy l2dy merged commit 09ff518 into master Dec 14, 2025
19 checks passed
@l2dy l2dy deleted the nightly branch December 14, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants